import{ $http } from '@escook/request-miniprogram'
uni.$http=$http
//请求的根路径
$http.baseUrl='https://api-hmugo-web.itheima.net/'

 import Vue from 'vue'
// import store from './store/index.js'
import store from './store'
import Vuex from 'vue'
// #ifndef VUE3


               

$http.beforeRequest=function(option){
  uni.showLoading({
    title:'数据加载中'
  })
  
}
$http.afterRequest(){ 
  uni.hideLoading()
}

// Vue.config.productionTip = false 

App.mpType = 'app'
const app = new Vue({
    ...App,
    
})
app.$mount()
// #endif

// #ifdef VUE3

import { createSSRApp } from 'vue'
import App from './App.vue'

export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  return {
    app
  }
}
// #endif
